import request from '@/utils/request'

// 扫码记录
export function scan(scan_type, scan_text, scan_char) {
    const data = {
        "scan_type": scan_type,
        "scan_text": scan_text,
        "scan_char": scan_char
    }
    return request({
        'url': '/tools/scan/data',
        'method': 'post',
        headers: {
            isToken: false
        },
        'data': JSON.stringify(data)
    })
}